<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <link rel="stylesheet" href="styles/style.css">
        <link rel="stylesheet" href="styles/theme/atom-one-dark.css">
        <title>例子8-ES6/7常用语法介绍</title>
    </head>
    <body>
        <pre>
            <code>
                // 例子8
                let [foo] = 1; // Uncaught TypeError: 1 is not iterable

                //-------------------------------------------------

                let [foo] = false; // Uncaught TypeError: false is not iterable

                //-------------------------------------------------

                let [foo] = NaN; // Uncaught TypeError: NaN is not iterable

                //-------------------------------------------------

                let [foo] = undefined; // Uncaught TypeError: undefined is not iterable

                //-------------------------------------------------

                let [foo] = null; // Uncaught TypeError: null is not iterable

                //-------------------------------------------------

                let [foo] = {}; // Uncaught TypeError: {} is not iterable
            </code>
        </pre>
        <script src="scripts/libs/highlight.pack.js"></script>
        <script src="scripts/8.js"></script>
        <script>
            hljs.initHighlightingOnLoad();
        </script>
    </body>
</html>